#!/bin/sh
#
# $OpenBSD: xl2tpd.rc,v 1.2 2014/10/11 21:11:20 sthen Exp $

daemon="${TRUEPREFIX}/sbin/xl2tpd"
daemon_user="_xl2tpd"

. /etc/rc.d/rc.subr

rc_pre() {
	/usr/bin/install -d -o ${daemon_user} /var/run/xl2tpd
	[ -p /var/run/xl2tpd/l2tp-control ] ||
	    mkfifo /var/run/xl2tpd/l2tp-control
}

rc_cmd $1
